package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Boat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoatMapper extends BaseMapper<Boat> {

    List<Boat> selectAllBoat(@Param("beginningName")String beginningName,
                             @Param("destinationName")String destinationName,
                             @Param("start")Integer start,
                             @Param("pageSize")Integer pageSize);//条件+分页查询轮船票信息

    int count(@Param("beginningName")String beginningName,@Param("destinationName")String destinationName);//条件查询轮船票信息数量
}
